package com.auntvt.timo.jpax.springbootstarter.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * jpax分页信息配置
 *
 * @author 小懒虫 <auntvt＠163.com>
 * @date 2021/7/31
 */
@Data
@Component
@ConfigurationProperties(prefix = "timo.jpax.page.param-name")
public class JpaxPageProperties {

    /**
     * 当前页-参数名称
     */
    private String page = "page";

    /**
     * 显示条数-参数名称
     */
    private String size = "size";

    /**
     * 排序字段-参数名称
     */
    private String orderBy = "orderByColumns";

    /**
     * 排序方式-参数名称
     */
    private String dir = "dir";

}
